package org.cnc.explain.lifecycle.beandestroy_10;

import org.springframework.beans.factory.DisposableBean;

import javax.annotation.PreDestroy;

/**
 * <p>
 * #TODO: desc
 * </p>
 *
 * @author zhiyong.tan
 * @since 2022-09-04
 */
public class BeanDestroyBean implements DisposableBean {
	@Override
	public void destroy() throws Exception {
		System.out.println("DisposableBean 执行");
	}
	@PreDestroy
	public void preDestroy(){
		System.out.println("PreDestroy执行");
	}
}
